package com.parkwalk.xxx.persistence;

import java.util.List;

/**
 * @author borball.zh@gmail.com
 * @date 2012-5-1
 * 
 */
public interface Mapper<T> {

	public T findByPK(Object o);

	public T findByUnique(Object o);

	public List<T> findAll();

	public void add(T t);

	public void delete(T t);
	
	public void deleteAll();

	public void deleteByUnique(Object o);

	public void deleteByPK(Object o);

	public void update(T t);
	
}
